﻿@using System.Data
@using STX.Domain
@model STX.Admin.Models.BizActivity.EditFeeModel
@{
    ViewBag.Title = "Add";
    Layout = null;
    STX.Domain.TabAdministrator CurUser = ViewBag.CurUser;

    string action = "saveauditfee";
    var disabledFee = " disabled=\"disabled\" readonly=\"readonly\"";
    if (Model.Step == StepEnum.执行审核)
    {
        action = "saveeditfee";
        disabledFee = "";
    }
}

<form class="pageForm addpage" action="@Url.Action(action)" method="post" id="editfeeform">
    <div style=" height:100%; width:100%; overflow:hidden" class="verticalSplitContainer">
        <div class="pageFormContent" ratio="*">
            <input type="hidden" value="@Model.Id" name="Id" />
            <div class="inputActivityDiv">
                <table style="width:100%">
                    <tr>    
                        <td width="15%">活动名称：</td>
                        <td width="85%" colspan="3">@Model.Name</td>
                    </tr>
                    <tr>    
                        <td width="15%">餐费（数）：</td>
                        <td width="35%"><input name="DinnerFeeNum" class="textInput" type="text" size="30" value="@Model.DinnerFeeNum" @disabledFee/></td>
                        <td width="15%">单价：</td>
                        <td width="35%"><input name="DinnerFee" class="textInput" type="text" size="30" value="@Model.DinnerFee"@disabledFee/></td>
                    </tr>
                    <tr>    
                        <td width="15%">车费（数）：</td>
                        <td width="35%"><input name="BusFeeNum" class="textInput" type="text" size="30" value="@Model.BusFeeNum" @disabledFee/></td>
                        <td width="15%">单价：</td>
                        <td width="35%"><input name="BusFee" class="textInput" type="text" size="30" value="@Model.BusFee"@disabledFee/></td>
                    </tr>
                    <tr>    
                        <td width="15%">其他（数）：</td>
                        <td width="35%"><input name="OtherFeeNum" class="textInput" type="text" size="30" value="@Model.OtherFeeNum" @disabledFee/></td>
                        <td width="15%">单价：</td>
                        <td width="35%"><input name="OtherFee" class="textInput" type="text" size="30" value="@Model.OtherFee"@disabledFee/></td>
                    </tr>
                </table>
            </div>
        </div>

        <div class="formBar" ratio="#30">
            <ul>
                <li><div class="simplebutton"><div class="r"><button type="button" class="submit">提交</button></div></div></li>
                @Html.Partial("~/Administrator/Views/BizActivity/Step.cshtml", new STX.Admin.Models.BizActivity.StepModel(Model.Step))
            </ul>
        </div>
    </div>
    <script type="text/javascript">
        $(function () {
            $("#editfeeform input").disabledinput();
        });
    </script>
</form>